import request from '@/utils/request'

// 查询职业诊断标准禁忌症列表
export function listBasecontraindicationcriterion(query) {
  return request({
    url: '/basic/basecontraindicationcriterion/list',
    method: 'get',
    params: query
  })
}

// 查询职业诊断标准禁忌症详细
export function getBasecontraindicationcriterion(id) {
  return request({
    url: '/basic/basecontraindicationcriterion/' + id,
    method: 'get'
  })
}

// 新增职业诊断标准禁忌症
export function addBasecontraindicationcriterion(data) {
  return request({
    url: '/basic/basecontraindicationcriterion',
    method: 'post',
    data: data
  })
}

// 修改职业诊断标准禁忌症
export function updateBasecontraindicationcriterion(data) {
  return request({
    url: '/basic/basecontraindicationcriterion',
    method: 'put',
    data: data
  })
}

// 删除职业诊断标准禁忌症
export function delBasecontraindicationcriterion(id) {
  return request({
    url: '/basic/basecontraindicationcriterion/' + id,
    method: 'delete'
  })
}
